<template>
	<view class="">
		<!-- 轮播图 -->
		<view>
			<u-swiper height="300" :list="banner_list" previousMargin="30rpx" nextMargin="30rpx" circular
				:autoplay="true" radius="14" bgColor="#ffffff"></u-swiper>
		</view>
		<!-- 消息通知 -->
		<view class="notice">
			<u-notice-bar  bgColor="#fff" color="red" :text="defaultNotice" :fontSize="30"></u-notice-bar>
		</view>
		
		<!-- 类目 -->
		<view class="menu">
			<view class="menu-title">
				<text>快递类型</text>
			</view>
			<view class="menu-list">
				<view class="menu-list-item">
					<view class="menu-list-item-img">
						<img src="/static/tab/sf.png" alt="" mode="aspectFit"/>
					</view>
					<view class="menu-list-item-name">顺丰速运</view>
				</view>
				<view class="menu-list-item">
					<view class="menu-list-item-img">
						<img src="/static/tab/db.png" alt="" mode="aspectFit"/>
					</view>
					<view class="menu-list-item-name">德邦快递</view>
				</view>
				<view class="menu-list-item">
					<view class="menu-list-item-img">
						<img src="/static/tab/jd.png" alt="" mode="aspectFit"/>
					</view>
					<view class="menu-list-item-name">京东物流</view>
				</view>
				<view class="menu-list-item">
					<view class="menu-list-item-img">
						<img src="/static/tab/styd.png" alt="" mode="aspectFit"/>
					</view>
					<view class="menu-list-item-name">四通一达</view>
				</view>
			</view>
		</view>
	
		
		<view class="footer-btn">
			<button class="radius cu-btn btn">点击关注</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				banner_list: [
					require('../../static/banner.png')
				],
				defaultNotice: '运费平台在线支付，超重需要补缴，下单失败后台会统一退款；建议在工作时间寄件，客服在线时间为9:00-18:00；',
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.footer-btn{
		position: fixed;
		left: 50%;
		bottom: 5vh;
		transform: translateX(-50%);
		.btn{
			background: #1eb0a8;
			color: #fff;
		}
	}
	.menu{
		box-sizing: border-box;
		padding: 0 20upx;
		.menu-title{
			padding: 30upx 0;
			text{
				font-size: 32upx;
				color: #000;
				font-weight: 600;
			}
		}
		.menu-list{
			display: flex;
			flex-wrap: wrap;
			.menu-list-item{
				display: flex;
				align-items: center;
				width: 49%;
				background-color: #fff;
				border-radius: 12upx;
				overflow: hidden;
				padding: 20rpx;
				margin-bottom: 16upx;
				box-sizing: border-box;
				&:nth-child(2n+1) {
					margin-right: 2%;
				}
				
				.menu-list-item-img{
					width: 100rpx;
					height: 100rpx;
					overflow: hidden;
					img{
						width: 100%;
						height: 100%;
						border-radius: 20upx;
					}
				}
				.menu-list-item-name{
					flex: 1;
					padding-left: 20upx;
					font-size: 30upx;
					color: #000;
					font-weight: 600;
				}
			}
		}
	}
	
	.nav {
		width: 100%;
		padding: 30rpx;
		.nav-container{
			padding: 20upx;
			overflow: hidden;
			border-radius: 14rpx;
			.grid-img{
				width: 100rpx;
				height: 100rpx;
				padding: 20upx;
				border-radius: 50%;
				overflow: hidden;
				margin-bottom: 10rpx;
				image{
					width: 100%;
					height: 100%;
				}
				
			}
			.import{
				background-color: #3291ff;
			}
			.export{
				background-color: #fc0402;
			}
			.grid-text{
				
			}
		}
	}
	.notice ::v-deep.u-icon>text {
		font-size: 16px !important;
	}
</style>
